package xcmg.device.dao.mapper.ratingManager;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import xcmg.device.dao.entity.ratingManager.SalesCompleteDetailDO;

import java.util.Date;
import java.util.List;

@Mapper
@Repository
public interface SalesCompleteDetailDOMapper {
    int deleteByPrimaryKey(String id);

    int insert(SalesCompleteDetailDO record);

    int insertSelective(SalesCompleteDetailDO record);

    SalesCompleteDetailDO selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(SalesCompleteDetailDO record);

    int updateByPrimaryKey(SalesCompleteDetailDO record);

    List<SalesCompleteDetailDO> getClientSalesAmount(@Param("idList") List<Long> clientIdList,
                                                     @Param("orgId") String orgId, @Param("startTime") Date startTime,@Param("endTime") Date endTime);

    int batchInsert(@Param("recordList") List<SalesCompleteDetailDO> recordList );

    List<SalesCompleteDetailDO> selectByScoreInfoId(@Param("scoreInfoId") String scoreInfoId);
}